package com.example.spring.activemq.jms.vo;


public enum EnumResult implements EnumInfoType {
    SUCCESS("10000", "成功"),
    FAILED("99999", "系统未知错误"),
    W000001("W000001", "缺少请求参数"),
    W000002("W000002", "新增信息失败"),
    W000003("W000003", "更新信息失败"),
    W000004("W000004", "删除信息失败"),
    W000005("W000005", "未查询到相关信息"),
    W000006("W000006", "批量新增失败"),
    W000007("W000007", "请求报文格式错误，不是有效的JSON"),
    W000008("W000008", "签名认证失败"),
    W000009("W000009", "缺少请求头信息"),
    W000010("W000010", "用户未登录或登录已失效，请重新登录"),
    W000011("W000011", "您无权访问"),
    W000012("W000012", "菜单已分配角色，不能删除"),
    W000013("W000013", "菜单存在子菜单，不能删除"),
    W000014("W000014", "权限认证失败"),
    W000015("W000015", "无法连接到服务器"),
    W000016("W000016", "图片文件过大"),
    W000017("W000017", "系统编号不存在，请检查配置是否正确"),
    W000018("W000018", "资源不存在"),
    W000019("W000019", "您的访问太过频繁"),
    W000020("W000020", "您的登陆已失效，请重新登陆"),
    W000021("W000021", "您无权访问该资源"),
    W000022("W000022", "参数解密失败"),
    W000023("W000023", "获取信息失败");

    private String code;
    private String msg;

    private EnumResult(String code, String msg) {
        this.setCode(code);
        this.setMsg(msg);
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String toString() {
        return "[" + this.code + ":" + this.msg + "]";
    }
}
